﻿<Window x:Class="SuperQuery.RemoveDatabases"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Remove Databases" Height="300" Width="300" 
        TextOptions.TextFormattingMode="Display" Icon="Icons/removedb.ico"
        WindowStartupLocation="CenterScreen" ShowInTaskbar="False" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <TextBlock Grid.Row="0" TextWrapping="Wrap" Margin="5">
            Select the databases to remove from the list below and click "OK"
        </TextBlock>

        <ListBox Grid.Row="1" Margin="5,0,5,0" KeyboardNavigation.TabIndex="0"
                 ItemTemplate="{StaticResource SelectableDatabase}" ItemsSource="{Binding LoadedDatabases}"/>

        <DockPanel Grid.Row="2" DockPanel.Dock="Bottom" LastChildFill="False">
            <Button x:Name="btnSelectAll" DockPanel.Dock="Right" Click="btnSelectAll_Click" KeyboardNavigation.TabIndex="2">Select _All</Button>
            <Button x:Name="btnSelectNone" DockPanel.Dock="Right" Click="btnSelectNone_Click" KeyboardNavigation.TabIndex="1">Select _None</Button>
        </DockPanel>
        
        <DockPanel Grid.Row="3" LastChildFill="False">
            <Button x:Name="btnCancel" DockPanel.Dock="Right" Click="btnCancel_Click" KeyboardNavigation.TabIndex="4">Cancel</Button>
            <Button x:Name="btnOK" DockPanel.Dock="Right" Click="btnOK_Click" KeyboardNavigation.TabIndex="3">OK</Button>
        </DockPanel>
    </Grid>
</Window>
